package appli.prems;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.EditText;
import android.widget.TextView;


public class PremiereappliActivity extends Activity {
    /** Called when the activity is first created. */
    
    private TextView texte;
    private EditText input;
    private Button bouton;
    
    
    public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);
				texte = (TextView) this.findViewById(R.id.montext);
		texte.setText("bonjour tout le monde");
		
		input = (EditText) this.findViewById(R.id.TextViewMaininput);
		
		bouton = (Button) this.findViewById(R.id.ButtonMainBouton);
		
		bouton.setOnClickListener(new View.OnClickListener() {
			
			public void onClick(View arg0) {
				// TODO Auto-generated method stub
				texte.setText(input.getText());
			}
		});
		
    }
}